package com.cqut.dto;

import com.cqut.util.BeanUtil;
import com.cqut.model.Role;

import java.io.Serializable;


public class RoleDTO implements Serializable {
        
        private static final long serialVersionUID = 1L;
        
        private String roleId;
        
        private String roleName;
        
        //状态
        private Integer state;
        
        //备注
        private String remark;
        
        public String getRoleId(){
        	return this.roleId;
        }
        
        public void setRoleId(String roleId){
        	this.roleId = roleId;
        }
        
        public String getRoleName() {
            return this.roleName;
        }
        
        public void setRoleName(String roleName) {
            this.roleName = roleName;
        }
        
        public Integer getState() {
            return this.state;
        }
        
        public void setState(Integer state) {
            this.state = state;
        }
        
        public String getRemark() {
            return this.remark;
        }
        
        public void setRemark(String remark) {
            this.remark = remark;
        }
        
        public Role toModel() {
            Role model = new Role();
			BeanUtil.convert(this, model);
			return model;
        }
    
}